package ensemble.samples.controls

import javafx.scene.paint.Color
import net.oschina.oldpig.snout.FxBuilder
import ensemble.FixSizeSample

class AccordionSampleS extends FixSizeSample(150, 150) {
  import FxBuilder._

  {}
  override def content =
    accordion() {
      titledPane(text := "Node 1") {
        button(text := "Button")
      }
      titledPane(text := "Node 2") {
        fxText(text := "Button")
      }
      titledPane(text := "Node 3") {
        rectangle(fill := Color.RED, width := 120, height := 50)
      }
    }

}

